package com.wan37.client.message.received;

import com.google.protobuf.Message;
import com.wan37.client.handler.ClientHandler;
import com.wan37.protobuf.constant.PtoNum;
import com.wan37.protobuf.message.client2server.game.Game;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author : luoyong
 * @date : 2020-07-01 16:12
 **/
@Component(PtoNum.SGAMEATTACKBROADCAST + "")
public class SGameAttackBroadcast implements ReceiveMsg {
    private final static Logger logger = LoggerFactory.getLogger(SGameAttackBroadcast.class);
    private ClientHandler clientHandler = ClientHandler.getInstance();

    @Override
    public void execute(Message msg) {
        Game.SGameAttackBroadcast sab = (Game.SGameAttackBroadcast) msg;
        //更新部分对应实体状态
        clientHandler.updateAOIAllRole(sab.getAllRoleList());
    }
}
